package cn.idanda.core.entity.oa;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import cn.idanda.core.entity.base.IdEntity;

@Entity
@Table(name="idan_base_user")
@NamedQuery(name = "User.findAll",query = "select u from User u" )
public class User extends IdEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	private String username;

    private String password;
    
    /**
     * 加密的盐
     */
    private String salt;
    
    /**
     * 登陆使用
     */
    private String email;

    /**
     * 用户积分，用于判断用户的活跃程度
     */
    private Long points;
    
    private int age;
    
    private String address;
    /**
     * 目前的状态
     */
    private String status;
    /**
     * 未来希望成为的状态
     */
    private String futrue;
    /**
     * 个人签名、座右铭
     */
    private String sign;
    
    private String createTime;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Long getPoints() {
		return points;
	}

	public void setPoints(Long points) {
		this.points = points;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getFutrue() {
		return futrue;
	}

	public void setFutrue(String futrue) {
		this.futrue = futrue;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

}